package com.jeesite.modules.conf;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

import com.alibaba.fastjson.JSONObject;

public class Pair {
   private String key;
   private Object value;
   
public Pair(String key, Object value) {
	super();
	this.key = key;
	this.value = value;
}
public String getKey() {
	return key;
}
public void setKey(String key) {
	this.key = key;
}
public Object getValue() {
	return value;
}
public void setValue(Object value) {
	this.value = value;
}
@Override
public String toString() {
	return ReflectionToStringBuilder.toString(this);
}
  public JSONObject toAckJson() {
	  JSONObject result=new JSONObject();
	  result.put("code", this.getKey());
	  result.put("message", this.getValue());
	  return result;
  }
}
